﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XMK.Tadong.Model;
using XMK.Tadong.Data;
namespace XMK.Tadong.Biz
{
    class FileManageBiz
    {
        /// <summary>
        /// 文件重命名
        /// </summary>
        /// <param name="space_id">空间ID</param>
        /// <param name="path">文件的相对路径和文件名</param>
        /// <param name="oldName">原文件名</param>
        /// <param name="newName">新文件名</param>
        /// <returns>重命名是否成功</returns>
        public bool Rename(decimal space_id,string path,string oldName,string newName)
        {
            bool result = true;

            return result;
        }
        /// <summary>
        /// 删除文件
        /// </summary>
        /// <param name="space_id">文件所在空间ID</param>
        /// <param name="path">文件路径</param>
        /// <param name="name">文件名</param>
        /// <returns>删除是否成功</returns>
        public bool Delete(decimal user_id, string path, string name)
        {
            bool result = true;

            return result;
        }

        public bool Add(decimal user_id, string path,string name)
        {
            bool result = true;

            return result;
        }

        public bool Cut(string user_id,string path,string newpath, string name)
        {
             bool result = true;

            return result;
        }

       

        public bool Copy(string user_id,string path,string newpath, string name)
        {
             bool result = true;

            return result;
        }


    }
}
